<!--inicio de contenido-->

<h2 class="grid_12">
Listado de egresos del Sr(a): <?php echo $egresos[0]['Propietario']['nombre'] ?><br />
Fechas: <?php echo $fecha1 ?> y <?php echo $fecha2 ?>
</h2>
<div class="clear"></div>
<div class="grid_8">
   <div class="box">
      <div class="header">
         <?php echo $this->Html->image("icons/packs/fugue/16x16/shadeless/table-excel.png", array('width'=>"16px", 'height'=>"16px")) ?>
         <h3>Egresos</h3>
      </div>
      <div class="content">
         <table id="grid" class="table">
            <thead>
               <tr>
                  <th>Tipo</th>
                  <th>Via</th>
                  <th>Monto</th>
                  <th>detalle</th>
               </tr>
            </thead>
            <tbody>
               <?php foreach($egresos as $egreso): ?>
               <tr>
                  <td>
                  <?php echo $egreso['Tipospago']['nombre'] ?>
                  </td>
                  <td>
                  <?php if($egreso['Egresobanco']['id']!=null){
                     echo 'Banco';
                  }
                  ?>
                  <?php if($egreso['Egresoefectivo']['id']!=null){
                     echo 'Efectivo';
                  }
                  ?>
                  <?php if($egreso['Egresoscuentascobros']['id']!=null){
                     echo 'Cuenta por cobrar';
                  }
                  ?>
                  </td>
                  <td>
                  <?php echo $egreso['Egreso']['monto'] ?>
                  </td>
                  <td>
                  <?php echo $this->Html->link(
              $this->Html->image("icons/packs/diagona/16x16/049.png", array("alt"=>"ver")),
              array('action'=>"ver",$denuncia['Servicio']['id']),
              array('escape' => false)
              ); ?>
                  <?php if($egreso['Egresobanco']['id']!=null){
              echo $this->Html->link(
              $this->Html->image("icons/packs/diagona/16x16/049.png", array("tittle"=>"ver egreso banco")),
              array('action'=>"veregreso",$egreso['Egresobanco']['id'], $egreso['Egreso']['tipocobro_id']),
              array('escape' => false)
              );
                     
                  }
                  ?>
                  <?php if($egreso['Egresoefectivo']['id']!=null){
                     echo $this->Html->link(
              $this->Html->image("icons/packs/diagona/16x16/049.png", array("tittle"=>"ver egreso banco")),
              array('action'=>"veregreso",$egreso['Egresobanco']['id'], $egreso['Egreso']['tipocobro_id']),
              array('escape' => false)
              );
                  }
                  ?>
                  <?php if($egreso['Egresoscuentascobros']['id']!=null){
                     echo $this->Html->link(
              $this->Html->image("icons/packs/diagona/16x16/049.png", array("tittle"=>"ver egreso banco")),
              array('action'=>"veregreso",$egreso['Egresobanco']['id'], $egreso['Egreso']['tipocobro_id']),
              array('escape' => false)
              );
                  }
                  ?>
                  </td>
               </tr>
               <?php endforeach; ?>
            </tbody>
         </table>
      </div>
   </div>
</div>
<!--fin de contenido-->
<div class="grid_4">
    <?php echo $this->element('menuegresos'); ?>
</div> <!-- End of .grid_4 -->